.class public Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;
.super Ljava/lang/Object;
.source "SweepLineEvent.java"

# interfaces
.implements Ljava/lang/Comparable;


# instance fields
.field private deleteEventIndex:I

.field edgeSet:Ljava/lang/Object;

.field private eventType:I

.field private insertEvent:Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;

.field private obj:Ljava/lang/Object;

.field private xValue:D


# direct methods
.method public constructor <init>(Ljava/lang/Object;DLcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;Ljava/lang/Object;)V
    .locals 0

    .line 55
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 56
    iput-object p1, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->edgeSet:Ljava/lang/Object;

    .line 57
    iput-wide p2, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->xValue:D

    .line 58
    iput-object p4, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->insertEvent:Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;

    const/4 p1, 0x1

    .line 59
    iput p1, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->eventType:I

    if-eqz p4, :cond_0

    const/4 p1, 0x2

    .line 61
    iput p1, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->eventType:I

    .line 62
    :cond_0
    iput-object p5, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->obj:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public compareTo(Ljava/lang/Object;)I
    .locals 7

    .line 80
    check-cast p1, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;

    .line 81
    iget-wide v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->xValue:D

    iget-wide v2, p1, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->xValue:D

    const/4 v4, -0x1

    cmpg-double v5, v0, v2

    if-gez v5, :cond_0

    return v4

    :cond_0
    const/4 v5, 0x1

    cmpl-double v6, v0, v2

    if-lez v6, :cond_1

    return v5

    .line 83
    :cond_1
    iget v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->eventType:I

    iget p1, p1, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->eventType:I

    if-ge v0, p1, :cond_2

    return v4

    :cond_2
    if-le v0, p1, :cond_3

    return v5

    :cond_3
    const/4 p1, 0x0

    return p1
.end method

.method public getDeleteEventIndex()I
    .locals 1

    .line 68
    iget v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->deleteEventIndex:I

    return v0
.end method

.method public getInsertEvent()Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;
    .locals 1

    .line 67
    iget-object v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->insertEvent:Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;

    return-object v0
.end method

.method public getObject()Ljava/lang/Object;
    .locals 1

    .line 71
    iget-object v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->obj:Ljava/lang/Object;

    return-object v0
.end method

.method public isDelete()Z
    .locals 1

    .line 66
    iget-object v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->insertEvent:Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public isInsert()Z
    .locals 1

    .line 65
    iget-object v0, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->insertEvent:Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public setDeleteEventIndex(I)V
    .locals 0

    .line 69
    iput p1, p0, Lcom/vividsolutions/jts/geomgraph/index/SweepLineEvent;->deleteEventIndex:I

    return-void
.end method
